﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using LastoRevival.Service.Contracts.Models;

namespace LastoRevival.Service.Contracts
{
	[ServiceContract(Namespace = Constants.ServiceNamespace)]
	public interface IAdminService
	{
		[OperationContract]
		int CreateForum(Guid loginToken, CreateForumModel forum);

		[OperationContract]
		void DeleteForum(Guid loginToken, int forumID);

		[OperationContract]
		void EditForum(Guid loginToken, EditForumModel forum);

		[OperationContract]
		EditForumModel GetForumForEdit(Guid loginToken, int forumID);

		[OperationContract]
		ViewForumAccessModel GetForumAccessPermissions(Guid loginToken, int forumID);

		[OperationContract]
		void UpdateForumAccessPermissions(Guid loginToken, UpdateGroupPermissionsModel access);

		[OperationContract]
		void UpdateForum(Guid loginToken, EditForumModel forum);
	}
}
